Bluetooth media device time synchronization

ABSTRACT

Synchronized media streaming in a device chain including first, second and third Bluetooth media device having a controller and time synchronization algorithm. The first device formats a first media packet including received media data, second device address, and synchronization information including packet start time including a delay time and cumulative clock drift counted thus far. The second device receives the first packet and formats a second packet including the media data, third device address, updated synchronization information including the second packet&#39;s play start time, local clock time, clock drift, and a cumulative clock drift counted thus far. The second device transmits the second packet to the third device. The synchronization algorithms begin synchronized playing of the media data including the first device playing after the delay time, second device playing after the first packet&#39;s play start time, and the third device playing after the second packet&#39;s play start time.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 15/697,023, filed Sep. 6, 2017, which is incorporated herein by reference in its entirety.

FIELD

Disclosed embodiments relate generally to the field of wireless communications, and more particularly to techniques for wireless device communication of media data (video or audio data) using Bluetooth.

BACKGROUND

Bluetooth (BT) is an example of an ad-hoc networking technology which is the wireless communication standard generally used when transferring information between two or more devices that are near to one another when speed is not an issue, including telephones, printers, modems and headsets. BT is well suited for low-bandwidth applications including transferring sound data with telephones (e.g., with a BT headset) or byte data with hand-held computers (transferring files) or from keyboards or mice. The BT Special Interest Group (SIG) specification may be used for these communications.

BT devices support high quality audio distribution. A conventional use case is the streaming of music content from a stereo music player to headphones or speakers. The audio data is compressed in a proper format for efficient use of the limited bandwidth. Another use case is the synchronizing of the picture and speech in a movie, for example.

A BT profile is a specification regarding an aspect of BT-based wireless communication between devices. The BT profile resides on top of the BT core specification and optionally other additional protocols. The Audio/Video Distribution Transport Protocol (AVDTP) comprises a signaling entity for negotiation of audio streaming parameters and a transport entity that handles streaming itself. AVDTP is used by the advanced audio distribution profile to stream music to stereo headsets over a Logical Link Control and Adaptation Layer Protocol (L2CAP) channel intended for the video distribution profile in the BT transmission.

The Advanced Audio Distribution Profile (A2DP), sometimes referred to as BT audio streaming, mandates usage of AVDTP. Most smartphones today are capable of connecting to A2DP devices and transmitting audio. A2DP defines a BT protocol and procedures that realizes distribution of audio content of high-quality audio in mono or stereo on asynchronous connection-less (ACL) channels. A2DP effectively transforms a BT connection into an invisible auxiliary audio cable. For example, using A2DP music can be streamed from a mobile phone, to a wireless headset, hearing aid/cochlear implant streamer, car audio, or streamed from a laptop/desktop to a wireless headset. Voice can be streamed from a microphone device to a recorder.

BT does not have any inherent way to synchronize audio between respective BT devices such as speakers. In the BT SIG specification, a synchronization code is embedded in the preamble of each BT packet to assist the receive device's timing synchronization process for each packet that is received. Unlike WiFi, due to lower relative power used for BT transmissions, BT has very limited broadcast capabilities. Moreover, broadcast in BT is not guaranteed to be received as there is no baseband acknowledgement (ACK) frame provided by the receiving devices. Synchronization can be performed at the device's host processor level which requires significant extra power and is also relatively complicated to implement. Current known audio synchronization solutions generally only support two audio devices configured in a pico-net topology, generally with the master as the audio transmitter and the slave as the sole audio receiver.

SUMMARY

This Summary is provided to introduce a brief selection of disclosed concepts in a simplified form that are further described below in the Detailed Description including the drawings provided. This Summary is not intended to limit the claimed subject matter's scope.

Disclosed embodiments recognize there are numerous user media applications such as audio applications including surround sound, social music playing, jukebox applications, and the Ad-Hoc addition of a speaker to a network of BT speakers, that all seek for separate (non-electrically connected) BT speakers to connect and play from the same audio stream over the same BT connection. For these audio applications to provide good sound quality there is a need for accurate time synchronization for all BT speakers so that when playing they are heard by the user as all playing at the same time, such as over standard BT A2DP. Although disclosed embodiments are generally described for distributing streamed audio from standard A2DP sources, disclosed embodiments can be used for generally any group of BT devices which implement A2DP, such as to synchronize the picture and the speech in a movie.

By configuring the BT media devices in a scatternet and thus in a device chain, and utilizing time synchronization information from each BT controller's local clock and network clock in a new BT packet, the BT controller of the BT devices can receive the media (e.g., audio) stream from an external source device (e.g., an A2DP source such as a mobile phone) via BT and time synchronize the other BT devices (e.g., speakers) in the chain. Disclosed packets can comprise a modified BT SIG AVDTP packet that includes added timing information comprising the packet's play start time including a delay time, and the cumulative drift counted thus far in the device chain (drift is the time difference between each device's local clock and its network clock). The delay time is selected to enable a sufficient time for all the BT speakers in the chain to store a plurality of packets in their memory before initiating playing.

The first BT media device in the BT speaker chain sends a disclosed packet with the timing information to the second BT media device, and the first BT media device is the media device that all other BT media devices in the chain time synchronize to. The first BT media device is the device that the A2DP source is directly connected which can be the media device furthest away physically from the A2DP source, the closest to, or any chain position in between. The stream originator (A2DP source) can be part of the BT media device's synchronized network (if sent by a disclosed BT media device) or it can be a source external to the synchronized network. In the case of audio, disclosed solutions allow distributing streamed audio from standard A2DP sources which can potentially be any A2DP compatible device in generally <30 μsec time synchronization.

One disclosed embodiment comprises a method of BT synchronized media streaming. A plurality of BT media devices are configured in a scatternet chain including a first, second, and at least a third BT media device each including a BT controller comprising a processor running a stored disclosed time synchronization algorithm, and having a local clock and a network clock. A scatternet as known in the art is a type of adhoc computer network comprising two or more piconets. In a scatternet, a slave device can communicate more than one piconet. In connection with operation of a scatternet, the BT master devices may relay the identity of mobile slave devices that are within their individual piconets to its host processor for purposes of tracking the location of a mobile slave device, or the location of a person carrying a mobile device.

The first BT media device formats a first media packet including received media data, second device address, and synchronization information including a packet start time including a delay time value and cumulative clock drift counted thus far in the chain. The second BT media device receives the first packet and formats a second packet including the media data, the third BT media device's address, updated synchronization information for the third BT media device including the second packet's play start time, local clock time of the second BT controller, the second BT controller's clock drift, the delay time, and a cumulative clock drift counted thus far. The second BT media device transmits the second packet to the third BT media device. The synchronization algorithms each begin synchronized playing of the media data including the first BT media device playing after the delay time is reached, the second BT media device playing after the first packet's play start time is reached, and the third BT media device playing after the second packet's play start time is reached.

BRIEF DESCRIPTION OF THE DRAWINGS

Reference will now be made to the accompanying drawings, which are not necessarily drawn to scale, wherein:

FIG. 1 shows an example audio network including a plurality of BT speakers configured in a chain including a first BT speaker, a second BT speaker, and at least a third BT speaker that are all within a BT range with at least one of the BT speakers, where the first BT speaker receives a stream of encoded audio data from a BT digital audio stream sending device shown as an A2DP source.

FIG. 2 shows an example disclosed media packet with the preamble configured to have the synchronization source (SSRC) field contain the packet's play start time and also the cumulative drift counted thus far, as well as a media payload field.

FIG. 3A shows disclosed synchronization signaling used the audio network shown in FIG. 1 in a buffering state for having the BT speakers start playing at essentially the same time by utilizing packets including the packet's play start time including the local clock from the peer (master) device and a delay time that enables all BT speakers to store a plurality of packets in their memory before begin speaking, and the cumulative clock drift.

FIG. 3B shows disclosed synchronization signaling comprising sending a packet including control data for adjusting the drift between BT speakers used in the audio network shown in FIG. 1 in the playing state by tracking the drift between network clocks, and compensating for this drift-based error. As with the buffering state depicted in FIG. 3A each packet includes the packet's play start to indicate when it's playing is due to occur.

FIG. 4A is a block diagram schematic of an example BT media device that implements disclosed BT media device time synchronization.

FIG. 4B is a block diagram schematic of a disclosed BT media device including a separate host processor and BT controller coupled to one another by a Host Controller Interface (HCI), where the BT controller includes firmware (FW) for implementing disclosed speaker chain time synchronization, according to an example embodiment.

FIG. 5 is a flowchart for an example method of BT synchronized media streaming for a media network including a plurality of BT media devices, according to an example embodiment.

FIG. 6 shows an example simplified example showing disclosed BT media device synchronization for a 3 speaker example.

DETAILED DESCRIPTION

Example embodiments are described with reference to the drawings, wherein like reference numerals are used to designate similar or equivalent elements. Illustrated ordering of acts or events should not be considered as limiting, as some acts or events may occur in different order and/or concurrently with other acts or events. Furthermore, some illustrated acts or events may not be required to implement a methodology in accordance with this disclosure.

Also, the terms “coupled to” or “couples with” (and the like) as used herein without further qualification are intended to describe either an indirect or direct electrical connection. Thus, if a first device “couples” to a second device, that connection can be through a direct electrical connection where there are only parasitics in the pathway, or through an indirect electrical connection via intervening items including other devices and connections. For indirect coupling, the intervening item generally does not modify the information of a signal but may adjust its current level, voltage level, and/or power level.

FIG. 1 shows an example media network shown as an audio network 100 including a plurality of BT speakers configured in a chain including a first BT speaker shown as speaker 1, a second BT speaker shown as speaker 2 and at least a third BT speaker shown as speaker 3, that are all within a BT range of their BT speaker neighbors. The first BT speaker receives a stream of encoded audio data from a BT digital audio stream sending device shown as an A2DP source 120. The BT speaker chain sets up a master-slave relationship between adjacent BT speakers. The BT speakers are first wirelessly connected with each other to create the speaker network chain (a scatternet), and each packet is being processed by the BT devices as any other audio packet would be processed with the exception that each packet is being sent down the chain with an updated timestamp to the next BT speaker in line in order to time synchronize the BT speakers. In the case the BT media device comprises BT speakers as shown in FIG. 1, the BT speakers can be either mono or stereo speakers.

No manipulation is being carried out to the received stream by the BT speakers. The stream is being processed, its headers are being changed to contain time synchronization information, and the stream is then being sent to the next BT device in chain to perform the same action. In the case of speakers the arrangement can be thought of as a chain of speakers, where one of them is connected to an A2DP audio source and the same audio is flowing through the speaker devices in the network.

Clock domains are shown between adjacent BT speakers in the speaker chain, with clock domain 1, 2, 3 each configured as master-slave pairs, with clock domain 1 shown between speaker 1 and speaker 2, clock domain 2 shown between speaker 2 and speaker 3, and the clock domain 3 shown between speaker 3 and speaker 4 (not shown). The respective clock domains are set by the master speaker device in each pair that sets the network clock of its slave speaker device with its local clock which is sent as packet play time information (e.g., in the SSRC field, see the SSRC field 210 in example media packet 200 shown in FIG. 2) of a disclosed packet that also includes the media data as its payload.

Speaker 1 being the first speaker in the chain is only a master in the clock domain 1 that is shared with speaker 2 that is a slave device in clock domain 1. The network clock of speaker 2 is set to the local clock of speaker 1 which being the first speaker=its network clock. Speaker 2 is a master in the clock domain 2 shown with speaker 3 being the slave device in clock domain 2, so that the local clock of speaker 2 (being the master) is used as the network clock of speaker 3. Speaker 3 is a master in clock domain 3 with speaker 4 (not shown) being the slave device in clock domain 3. As described in more detail below, clock domains are accomplished by a packet transmission from the master device to slave device, where a disclosed packet (see the media packet 200 shown in FIG. 2 described below) sent from the master to the slave device includes the packet's play start and the cumulative clock drift (difference) counted thus far. The BT clocks can comprise a crystal oscillator, ceramic resonator, RC (resistor, capacitor) feedback oscillator, or a silicon oscillator.

FIG. 2 shows an example disclosed media packet 200. Media packet 200 is shown utilizing the existing SSRC field 210 in the preamble of the BT packet, where the BT controller reads the received BT clock from its peer BT media device, transforms it to the BT media device's local time, and then stores it in the SSRC field 210 before sending it to the next BT media device in the chain. The time stamp field 220 is used to store the cumulative speaker's drift. There is also a media (e.g., audio) payload field 230.

Although described using the preamble, the time synchronization information may be stored elsewhere in the packet, such as at the beginning of the media payload field 230. The SSRC field 210 and time stamp field 220 are both shown by example as being 32 bits. The csrc list shown is an array of 16 (binary 0 to 15) contributing source (CSRC) elements identifying the contributing sources for the payload contained in this packet. Media packet 200 shows how a SSRC field 210 in a conventional BT A2DP packet can be used to reflect the reading of the received BT clock from a peer (previous speaker device (as a master) in the chain) BT speaker, transforming it to the speaker's local time, and storing it again to the SSRC field 210 of the packet before sending the packet to the next BT speaker in chain. The time stamp field 220 is used to store the cumulative speaker's drift.

As known in BT, the BT clock comprises two fields, a BT clock which ticks at a frame resolution, and packet timer (PT) which ticks at a microseconds rate. For example, every 1,250 microseconds, 1 frame has passed, which is one BT clock tick. An information element is stored in the SSRC field 210 including the BT clock and PT which can collectively comprise 27 bits, with the remaining 5 bits (for a 32 bit field) being used to store the intended receiving media device's (e.g., a speaker's) address identification to identify for whom this packet should be sent over a physical bus (e.g., a pulse-code modulation (PCM) bus). The packet media payload 230 generally contains PCM-encoded audio samples. This physical bus is not just a physical bus over the air, since the drift between the BT speaker's clocks are accounted for in packet 200.

FIG. 3A shows disclosed synchronization signaling used in the audio network 100 shown in FIG. 1 in the buffering state. The buffering state stores packets in the memory 422 (e.g., a data buffer) of each BT speaker and has the respective BT speakers start playing audio at essentially the same time by sending the time synchronization data (using packets shown as P4, P3, P2, and P1) between the BT speakers that include a delay time in advance of playing by the beginning of music play say ˜100 ms (a delay time) into the future, and time synchronizing the respective speakers using their local BT clocks which each tend to clock differently.

P4, P3, P2 are shown transmitted from master to slave speaker device in each pair that as described each BT speaker uses packets that includes a packet play time (including a delay time) which reflects reading the received BT clock from its peer (master) BT speaker, transforming it to the BT speaker's local clock time, and then storing it in the SSRC field 210, along with a time stamp field 220 that has the cumulative speaker's drift, before sending it to the next BT speaker in the chain to enable all BT speakers to begin speaking at the same time. Once the mark (the packet play time) is reached, all the respective BT speakers starts playing the same audio data, all at essentially the same time. This means each BT device waits for the exact BT clock and PT clock (where the BT clock counts in slots, with each slot say 1,250 μsec, and where the PT clock counts in μsec) so when the exact BT clock correct μsec value within that slot is reached, playing is begun. For each BT speaker, the BT clock and PT clock times received from master device are given in terms of the slave's network clock 409, and being forwarded in terms of the local clock 408 (see these clocks in FIG. 4A described below). At this point, all BT speaker's state is changed to playing for enabling the playing of the audio sample.

FIG. 3B shows disclosed synchronization signaling comprising sending control data to adjust the drift between the speakers used in the audio network 100 shown in FIG. 1 in the playing state for having the BT speakers track the drift between network clocks, and compensating for this drift-based timing error. As with the buffering state depicted in FIG. 3A, each packet includes the packet's play start time including the delay time to indicate when it's playing is due to occur.

FIG. 4A shows a system block diagram representation for an example BT media device 400 that generally conforms to the BT communications standard. The BT media device 400 is generally formed on at least one integrated circuit (IC) shown formed on a substrate 405 a having a semiconductor surface for the BT controller 425 b and on another substrate 405 b having a semiconductor surface for the host processor 425 a. The BT media device 400 may be any device that can engage in BT communications. Such BT media devices may be, may include, or may be a part of, mobile phones such as smartphone, tablets, computers, personal digital assistants, cameras, and household items with communication capabilities such as window blinds, and motion sensors. The BT media device 400 communicates along with a plurality of other BT media devices in a BT network configured as a scatternet and thus in a device chain.

The BT media device 400 comprises a host processor 425 a and a BT controller 425 b that communicate with one another over the HCI 430. The host processor 425 a includes a memory 432 that stores HCI FW including HCI command code. The BT controller 425 b includes a processor 423, a memory 422 including software 422 a comprising source code for parsing, understanding and acting on commands from the host processor 425 a, and a transceiver 424 including an RF driver 424 a that is adapted to be coupled to an antenna 418 which is generally off chip. The processors can comprise a digital signal processor (DSP) or microcontroller. The processors collectively implement a BT protocol stack for BT media operations. The BT media device 400 also includes a local clock 408 and a network clock 409.

The transceiver 424 is also shown including hardware comprising digital logic 424 b that can be used as an alternative to the software 422 a for implementing disclosed synchronization. As known in the art the transceiver 424 includes a transmitter and a receiver. The transmitter generally comprises a media access control (MAC) module, an encoder, a modulator, an Inverse Fast Fourier Transform (IFFT) unit, a digital to analog conversion (DAC)/filter module, and an RF/antenna module. The receiver generally comprises an RF/antenna unit, an analog to digital conversion (ADC)/filter unit, a FFT unit, a demodulator, a decoder, and a MAC module.

The memory 422 is more generally configured to store information including data, instructions, or both. The memory 422 may be any storage medium accessible by the processor 423, such as a read only memory (ROM), a random access memory (RAM), a register, cache memory, or magnetic media device such as internal hard disks and removable disks. A phase lock loop (PLL) 432 is also provided for purposes including mixing and frequency synthesis.

The processor 423 is coupled to the memory 422 and to the transceiver 424. In some implementations, the transceiver 424 comprises baseband units (not shown in FIG. 4A, but see FIG. 4B) and analog units (not shown) to transmit and receive RF signals. The baseband unit may comprise hardware to perform baseband signal processing including digital signal processing, coding and decoding, modulation, and demodulation. The analog unit may comprise hardware to perform analog-to-digital conversion (an ADC), digital to analog conversion (a DAC), filtering, gain adjusting, up-conversion, and down-conversion.

The analog unit may receive RF signals from an access point and down-convert the received RF signals to baseband signals to be processed by the baseband unit, or receive baseband signals from the baseband unit and up-convert the received baseband signals to RF wireless signals for uplink transmission. The analog unit comprises a mixer to up-convert the baseband signals and down-convert the RF signals with a carrier signal oscillated at the radio frequencies of the BT network. The data rate utilized by the BT media device 400 may be in the current BT frequency band of 2.472 GHz to 2.479 GHz, or any future BT frequency band utilized.

FIG. 4B is a functional layer depiction of the BT media device 400 shown in FIG. 4A now shown as 400′ showing the host processor 425 a including an application layer 440 including BT applications and a Logical Link Control and Adaptation Layer Protocol (L2CAP) layer 448. The BT protocol RFCOMM block 441 is a simple set of transport protocols, made on top of the L2CAP layer 448. The Telephony Control Protocol Specification (TCS) 442 defines ways to send audio calls between BT devices. The Service Discovery Protocol (SDP) 443 is a specification that defines a way to represent a range of UUIDs (which are nominally 128 bits) in a shorter form. The Point-to-Point Protocol (PPP 444) is a data link (layer 2) protocol used to establish a direct connection between two nodes. The Transmission Control Protocol/Internet Protocol (TCP/IP) 445 enables the BT device to carry TCP/IP traffic, the OBEX 446 is a communications protocol that facilitates the exchange of binary objects between BT devices, and the AT Commands interface (AT) 447 is a commands interface comprising a series of machine instructions used to activate features on an analog modem.

The BT controller 425 b is shown including link manager protocol (LMP) 426, a baseband section and an RF section that are part of the transceiver 424 shown in FIG. 4A. The BT controller 425 b is also shown including baseband circuitry 427 and RF circuitry 428. LMP 426 controls and negotiates all aspects of the operation of the BT connection between two adjacent BT media devices.

Disclosed time synchronization can be performed entirely by the BT controller, therefore no host processor is needed to synchronize the BT media devices, thus saving power. The Sync level is generally ˜30 μsec at beginning of play which is unaccounted time between software executing a command and the hardware output data of the BT media device on the physical bus lines, such as PCM lines. The drift level is about 4 msec per hour which is the cumulative error in the time synchronization algorithm's activity for relatively long time periods. The audiophile human ear can detect a shift at ˜20 msec which means the performance level for audio synchronization between the BT speakers in the network is more than adequate.

By scheduling the beginning of audio or audio with associated video (e.g., as noted above synchronization between a source device and a sink device can also be used to synchronize a picture and speech in a movie) to begin playing after a delay time ˜100 ms (into the future) so that other BT speakers in the chain have time to buffer an ample amount of samples, before starting to play. This 100 ms parameter has been tested, and performs well with up to 6 BT speakers. However, this delay time is generally configurable by user. By sending packets with the audio as well as the delay time to the speakers in advance and synchronizing the speakers using the BT clocks, the speakers can synchronize and begin playing audio at essentially the same time (˜30 μsec difference).

Disclosed embodiments can support 6 or more speakers while other solutions as described above support only 2 BT media devices (master and 1 slave). In general, there is no limitation on the number of speakers in the chain. In practice disclosed networks are limited to 6 BT devices due to solely internal device memory limitations. Given more memory, one can add more speakers to the network. Other BT speaker solutions use a pico-net star topology while disclosed embodiments use a scatternet topology.

Disclosed solutions also enable packet retries to send data and sufficient time to recover if any packets have to be retransmitted. Compared to the other known synchronization solutions, disclosed embodiments have advantages including while all other synchronization solutions provide synchronization on milli-second resolution, disclosed embodiments provide micro second resolution. Moreover, as described above disclosed synchronization can be used for 6 or more synchronized BT speakers, while other solutions are limited to only 2 synchronized BT speakers.

FIG. 5 is a flowchart for an example method 500 of BT synchronized media streaming, according to an example embodiment. Step 501 comprises configuring a plurality of BT media devices in a scatternet chain including a first, second and third BT media device each including a BT controller comprising a processor running a stored time synchronization algorithm and having a local and a network clock. Step 502 comprises the first BT media device receiving a stream of encoded media data from a BT digital media stream sending device. Step 503 comprises the time synchronization algorithm of the first device formatting at least a first BT media packet including the encoded media data, an address for the second BT media device, and time synchronization information for the second BT media device comprising the first BT media packet's play start time including a delay time, and a cumulative clock drift counted thus far in the chain.

Step 504 comprises the first BT media device transmitting the first BT media packet to the second BT media device. Step 505 comprises the time synchronization algorithm of the second BT media device formatting at least a second BT media packet including the encoded media data, an address for the third BT media device, and updated time synchronization information for the third BT media device including the second BT media packet's play start time including the local clock time of the second BT controller, the second BT controller clock's drift and the delay time value, and a cumulative clock drift counted thus far in the device chain. Step 506 comprises the second BT media device transmitting the second BT media packet to the third BT media device. Step 507 comprises the time synchronization algorithms beginning synchronized playing of the stream of encoded media data including the first BT media device playing after the delay time is reached, the second BT media device playing after the first BT media packet's play start time is reached, and the third BT media device playing after the second BT media packet's play start time is reached.

The delay time is generally at least 50 msec and is selected to enable sufficient time for all BT media devices to store a predetermined plurality of BT media packets in their memory before initiating playing. When the BT media devices comprise BT A2DP speakers they can span a plurality of different rooms that are in a BT range by invoking an application programming interface (API) to enable multi-room speaker operation. The plurality of BT media devices generally provide a synchronization level of <50 μsec at a beginning of synchronized playing and maintain this synchronization level during playing.

EXAMPLES

Disclosed embodiments are further illustrated by the following specific Examples, which should not be construed as limiting the scope or content of this Disclosure in any way.

Disclosed time synchronization for a BT media scatternet chain of 6 BT speaker was used with a BT audio packet having an audio sample and time synchronization information using a delay time of ˜100 ms (into the future) so that all other BT speakers in the chain have sufficient time to buffer an ample amount of packet samples before starting to play. The BT speakers all began playing the same audio samples at the essentially the same time, being within a 30 μsec difference. After beginning to play, the first BT speaker sends an updated BT audio packet including a drift value between its local and network clocks to the second BT speaker, and the second BT speaker sends an updated BT audio packet including a drift value between its clocks to the third BT speaker, etc., wherein the clock drift value is used to change a time for ‘speaking’ that compensates for the clock drift.

FIG. 6 shows a simplified audio example showing audio packets 1 and 2 (shown as AVDTP packets 1 and 2) having disclosed time synchronization information for a 3 BT speaker device chain example. The BT speaker devices as described above each include a BT controller running a stored synchronization algorithm in FW, and both devices have a local clock and a network clock. The BT controller 1 of speaker device 1 receives a stream of encoded audio data from a BT digital audio stream sending device, such as an A2DP source.

The BT controller 1 is shown having its local clock also used as its network clock thus only having a single (same) clock as it is the first device in the chain, which is shown with a time of 200 μs, so there is no clock difference. BT controller 1 formats an AVDTP packet shown as AVDTP packet 1 based on the example media packet 200 shown in FIG. 2 where the SSRC field 210 represents the 200 μs time value from its local clock and the delay time value (delay) such as 100 msec.

The timestamp field 220 stores the cumulative speaker's drift that is zero at this point in the chain being the first speaker device in the chain. ‘X’ shown in FIG. 6 is the drift between the audio source's local clock (not shown) and BT controller 1's local clock. The Packet ID shown provides a unique identification (ID) for each packet that enables making sure the packets are received in a sequential order and to be able to know that a packet wasn't lost on the way. The same difference is also calculated for each packet. Although not shown, AVDTP packet 1 has a media payload containing Pulse-code modulation (PCM)-encoded audio samples and is addressed to identify the speaker device 2 including BT controller 2 for whom AVDTP packet 1 is addressed which is sent over a physical bus such as a PCM bus.

The speaker 2 device including BT controller 2 is shown receiving AVDTP packet 1. BT controller 2 is shown having its local clock time at 625 μsec and its network clock time at 200 μsec (the network clock time is received from BT controller 1=BT controller 1's local clock time), so BT controller 2 has a clock difference (or clock drift) of 425 μsec. BT controller 2 formats an AVDTP packet shown as AVDTP packet 2 as with AVDTP packet 1 again based on the example media packet 200 shown in FIG. 2, where the SSRC field 210 provides a packet 2 play start time that reflects the local clock of BT controller 2 (625 μsec)−(minus) its clock drift (425 μsec) and the delay time value.

BT controller 2 thus transforms the received BT clock time of 200 μsec from BT speaker device 1 into the speaker 2's local time, and stores this time synchronization information in the SSRC field 210 of AVDTP packet 2. AVDTP packet 2 is also formatted to include an updated cumulative clock drift so far in the chain in the time stamp field 220 comprising X (from AVDTP packet 1), and Y which is the drift between the BT controller 1's local clock and BT controller 2's local clock, and there is shown a cumulative clock drift of 425 μsec (a 0 value from BT controller 1 and a 425 μsec value from BT controller 2). Although not shown, AVDTP packet 2 has a payload containing the same PCM-encoded audio samples and is addressed to identify speaker device 3 for whom AVDTP packet 2 is addressed which is sent over a physical bus such as PCM bus.

The speaker 3 device including BT controller 3 is shown receiving AVDTP packet 2. BT controller 3 is shown having a local clock time of at 150 μsec and its network clock time of 625 μsec (BT controller 2's local clock time), so the BT controller 3 has a clock difference of 475 μsec. BT controller 3 calculates the AVDTP packet 2's play start time that reflects the local clock of BT controller 3 (150 μsec)−(minus) its clock drift (475 μsec) and the delay time value.

The respective time synchronization algorithms begin synchronized playing of the same PCM-encoded audio samples including the first BT speaker playing after the delay time is reached, the second BT device begins playing after the AVDTP packet 1's play start time is reached, and the third BT media device begins playing after the AVDTP packet 2's play start time is reached. AVDTP packet 1 and AVDTP packet 2 have the same packet ID and same audio data, and only have different packet timing data on the packet. The respective speakers all begin within a <30 μsec time synchronization at the beginning of play so that BT speakers begin playing at essentially the same time the same audio data. Moreover, as described above, as with the buffering state describe above, during playing each packet gets time stamped to indicate when it's playing is due, and time synchronization between the speakers is maintained after playing has begun by tracking the drift between the network clocks and compensating for this source of time synchronization error.

Those skilled in the art to which this disclosure relates will appreciate that many other embodiments and variations of embodiments are possible within the scope of the claimed invention, and further additions, deletions, substitutions and modifications may be made to the described embodiments without departing from the scope of this disclosure. For example, although disclosed solutions are described for distributing streamed audio from standard A2DP sources, they can be used for more generally any group of devices which implements A2DP, such as to synchronize the picture and speech in a movie, for example. 

1. A method of Bluetooth (BT) synchronized media streaming, comprising: configuring a plurality of BT media devices in a scatternet chain including a first, second and third BT media device each including a BT controller comprising a processor running a stored time synchronization algorithm and having a local clock and a network clock; said first BT media device receiving a stream of encoded media data from a BT digital media stream sending device; said time synchronization algorithm of said first BT media device formatting at least a first BT media packet including said encoded media data, an address for said second BT media device, and time synchronization information for said second BT media device comprising said first BT media packet's play start time including a delay time, and a cumulative clock drift counted thus far in said chain; said first BT media device transmitting said first BT media packet to said second BT media device; said time synchronization algorithm of said second BT media device formatting at least a second BT media packet including said encoded media data, an address for said third BT media device, and updated time synchronization information for said third BT media device including said second BT media packet's play start time including a time of said local clock of said second BT controller, said second BT controller clock's drift and said delay time value, and said cumulative clock drift counted thus far in said device chain now including said clocks of said second BT media device, said second BT media device transmitting said second BT media packet to said third BT media device, and said time synchronization algorithms beginning synchronized playing of said stream of encoded media data including said first BT media device playing after said delay time is reached, said second BT device playing after said first BT media packet's play start time is reached, and said third BT media device playing after said second BT media packet's play start time is reached.
 2. The method of claim 1, wherein said delay time is at least 50 msec and is selected to enable sufficient time for all said plurality of BT media devices to store a predetermined plurality of said BT media packets in their memory before initiating said playing.
 3. The method of claim 1, wherein said plurality of BT media devices each comprise BT Advanced Audio Distribution Profile (A2DP) speakers and said BT digital media stream sending device comprises an A2DP audio data source.
 4. The method of claim 3, wherein said plurality of BT A2DP speakers span a plurality of different rooms that are in a BT range, further comprising invoking an application programming interface (API) to enable multi-room speaker operation.
 5. The method of claim 1, wherein said synchronization information is in a preamble of said first BT media packet and in a preamble of said second BT media packet.
 6. The method of claim 1, wherein said plurality of BT media devices provide a synchronization level of <50 μsec at beginning of said synchronized playing.
 7. The method of claim 1, further comprising at a time after said beginning said synchronized playing, updating said first BT media packet and updating said second media packet both with a new said stream of encoded media data and to reflect updated clock drift values for said BT controller clock's drift and a cumulative drift counted, said second BT media device and said third BT media device using said updated clock drift values to change a time for playing to compensate for clock drift.
 8. The method of claim 1, wherein said BT controller is formed on an integrated circuit (IC) comprising a substrate having at least a semiconductor surface, wherein said processor comprises a digital signal processor (DSP).
 9. A Bluetooth (BT) controller, comprising: a processor coupled to a memory and to a transceiver, an RF driver for driving said transceiver which is adapted to be coupled to an antenna, said memory including software for parsing, understanding and acting on commands received from a host processor that includes a Host Controller Interface (HCI) including a Host Controller Transport Layer and a HCI Driver which it is configured for being coupled to for providing a second BT media device, said BT controller for running firmware comprising a time synchronization algorithm stored in said memory, and having a local clock and a network clock; said BT controller for receiving a first BT media packet from a first BT media device in a scatternet chain including said second BT media device and a third BT media device, said time synchronization algorithm of said first BT media device for formatting at least said first BT media packet including a stream of encoded media data originating from a BT digital media stream sending device and time synchronization information for said second BT media device comprising said first BT media device's packet's play start time including a delay time, and a cumulative clock drift counted thus far in said chain comprising a time difference between said local clock and said network clock of said first BT media device; using a time from its said local clock, said time synchronization algorithm of said second BT media device for formatting at least a second BT media packet including said encoded media data, an address for said third BT media device, and updated time synchronization information for said third BT media device including said second BT media packet's play start time including said local clock of a second said BT controller, said second BT controller's clock drift and said delay time value, and a cumulative drift counted thus far in said device chain now including said clocks of said second BT media device, and following said second BT media device transmitting said second BT media packet to said third BT media device, said time synchronization algorithm beginning synchronized for playing of said stream of encoded media data including said second BT device playing after said first BT media packet's play start time is reached, with said first BT media device playing after said delay time is reached and said third BT media device playing after said second BT media packet's play start time is reached.
 10. The BT controller of claim 9, wherein said BT controller formed on an integrated circuit (IC) comprising a substrate having at least a semiconductor surface, and wherein said processor comprises a digital signal processor (DSP).
 11. The BT controller of claim 9, wherein said first, second and third BT media devices each comprise BT Advanced Audio Distribution Profile (A2DP) speakers and said BT digital media stream sending device comprises an A2DP audio data source.
 12. The BT controller of claim 9, wherein said synchronization information is in a preamble of said first BT media packet and in a preamble of said second BT media packet.
 13. The BT controller of claim 9, wherein said first, second and third BT media devices provide a synchronization level of <50 μsec at beginning of said synchronized playing.
 14. A Bluetooth (BT) media device, comprising: a host processor and a BT controller coupled to one another by a Host Controller Interface (HCI) including a Host Controller Transport Layer and a HCI Driver, said host processor implementing an applications layer and including HCI Firmware for communicating via said Host Controller Transport Layer with said BT controller, said BT media device configured in a scatternet chain including a second BT media device and a third BT media device for being coupled to said second BT media device; said BT controller including a processor coupled to a memory and to a transceiver, an RF driver for driving said transceiver which is adapted to be coupled to an antenna, said memory including software for parsing, understanding and acting on commands received from said host processor, said BT controller for running firmware comprising a time synchronization algorithm stored in said memory, and having a local clock and a network clock; said BT controller for receiving a first BT media packet from said second BT media device, said time synchronization algorithm of said BT media device for formatting at least said first BT media packet including a stream of encoded media data originating from a BT digital media stream sending device and time synchronization information for said second BT media device comprising said first BT media packet's play start time including a delay time, and a cumulative clock drift counted thus far in said chain comprising a time difference between said local clock and said network clock of a first BT media device; using a time from its said local clock, said time synchronization algorithm of said second BT media device for formatting at least a second BT media packet including said encoded media data, an address for said third BT media device, and updated time synchronization information for said third BT media device including said second BT media packet's play start time including said local clock of a second BT controller, said second BT controller's clock drift and said delay time value, and a cumulative drift counted thus far in said device chain now including said clocks of said second BT media device, and following said second BT media device transmitting said second BT media packet to said third BT media device, said time synchronization algorithm beginning synchronized for playing of said stream of encoded media data including said second BT device playing after said first BT media packet's play start time is reached, with said first BT media device playing after said delay time is reached and said third BT media device playing after said second BT media packet's play start time is reached.
 15. The BT device of claim 14, wherein said first, said second and said third BT media devices each comprise BT Advanced Audio Distribution Profile (A2DP) speakers and said BT digital media stream sending device comprises an A2DP audio data source.
 16. The BT device of claim 14, wherein said synchronization information is in a preamble of said first BT media packet and in a preamble of said second BT media packet.
 17. The BT device of claim 14, wherein said first, said second and said third BT media devices provide a synchronization level of <50 μsec at beginning of said synchronized playing. 